function b = slisallzeros(A)
%SLISALLZEROS Judges whether all elements in A are zeros
%
% [ Syntax ]
%   -  b = slisallzeros(A) 
%
% [ Description ]
%   -  b = slisallzeros(A) judges whether all elements in A are zeros.
%      A should be a logical or numeric array.
%
%      If A is empty, return true.
%
% [ History ]
%   - Created by Dahua Lin, on Dec 23, 2007
%

assert(isnumeric(A) || islogical(A), ...
    'sltoolbox:slisallzeros:invalidarg', ...
    'A should be a numeric or logical array.');

if isempty(A)
    b = true;
else
    b = is_all_zeros_cimp(A);
end

